import requests

# 1. 发送 GET 请求
response = requests.get("https://www.youdao.com/result?word=humongous&lang=en")
print(response.status_code)        # 200 表示成功
print(len(response.content))       # 返回 JSON 数据

# 2. 发送 POST 请求（模拟 API 调用）
data = {"name": "John", "age": 30}
response = requests.post("https://httpbin.org/post", json=data)
print(response.content)